package com.pri.chat.nim.session.viewholder;//package com.pri.chardemo.session.viewholder;
//
//import android.widget.ImageView;
//
//import com.bumptech.glide.Glide;
//import com.bumptech.glide.load.engine.DiskCacheStrategy;
//import com.bumptech.glide.request.RequestOptions;
//import com.pri.chardemo.R;
//import com.pri.chardemo.session.extension.StickerAttachment;
//import com.netease.nim.uikit.business.session.emoji.StickerManager;
//import com.netease.nim.uikit.business.session.viewholder.MsgViewHolderBase;
//import com.netease.nim.uikit.business.session.viewholder.MsgViewHolderThumbBase;
//import com.netease.nim.uikit.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
//
///**
// * Created by zhoujianghua on 2015/8/7.
// */
//public class MsgViewHolderSticker extends MsgViewHolderBase {
//
//    private ImageView baseView;
//
//    public MsgViewHolderSticker(BaseMultiItemFetchLoadAdapter adapter) {
//        super(adapter);
//    }
//
//    @Override
//    public int getContentResId() {
//        return R.layout.nim_message_item_sticker;
//    }
//
//    @Override
//    public void inflateContentView() {
//        baseView = findViewById(R.id.message_item_sticker_image);
//        baseView.setMaxWidth(MsgViewHolderThumbBase.getImageMaxEdge());
//    }
//
//    @Override
//    public void bindContentView() {
//        StickerAttachment attachment = (StickerAttachment) message.getAttachment();
//        if (attachment == null) {
//            return;
//        }
//
//        Glide.with(context)
//                .load(StickerManager.getInstance().getStickerUri(attachment.getCatalog(), attachment.getChartlet()))
//                .apply(new RequestOptions()
//                        .error(com.netease.nim.uikit.R.drawable.nim_default_img_failed)
//                        .diskCacheStrategy(DiskCacheStrategy.NONE))
//                .into(baseView);
//    }
//
//    @Override
//    protected int leftBackground() {
//        return 0;
//    }
//
//    @Override
//    protected int rightBackground() {
//        return 0;
//    }
//}
